﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using WcfService;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var binding = new BasicHttpBinding();
            var address = new Uri("http://localhost:4321/service1");
            var host = new ServiceHost(typeof (Service1));
            host.AddServiceEndpoint(typeof (IService1), binding, address);
            host.Open();
            Console.WriteLine("enter by zakonczyc");
            Console.ReadLine();
            host.Close();
        }
    }
}
